Update form field value by getting subform rows
Here is our approach to update form field value by getting subform rows

Our Assumption
1. We assume that you have one form and a sub from within the form
3. We assume you want to update the calculated value from subform rows in the main form
Approach
We've given the steps to update form field value by getting subform rows
1. Create workflow on form submission
1.1 Tap on "Edit this application"

1.2 Go to Workflow section

1.3 Tap on "New Workflow"

1.4 Give conditions for workflow as mentioned in the below image and tap on "Create Workflow"

1.5 Tap on "Add New Action"

1.6 Choose "Deluge Script" as Action Type

1.7 Copy and paste the below code in the Code Snippet and tap on "Save"

Code Snippet
Related Community Question
Use values from one workflow in another workflow | Link
Hi, i created a "Load of the form" workflow for when starting the form to create 5 lines of the subform.
Now want when I fill in the fields of the generated lines and press the SEND button, run a script that takes the data inserted in this subform and makes the sum of them.
Is there a way to take the information from the "Load of the form" workflow and use it in a "successful form submission" workflow?
